# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-language-data
pkgver=1.2.0
pkgrel=0
pkgdesc="Supplementary data about languages used by the langcodes module"
url="https://github.com/georgkrause/language_data"
# loongarch64: blocked by py3-marisa-trie
arch="noarch !loongarch64"
license="MIT"
depends="
	py3-marisa-trie
	py3-setuptools
	"
makedepends="
	py3-gpep517
	py3-poetry-core
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/l/language_data/language_data-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/language_data-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
639b5cb3191f4ef3ef4bebddd510fb886b0eb99cb6c44d4ea4bb243d7b0eeab2b03781346dd7588eb81702afbaeaab66287e1f3817b937ae2b7e8f9d4c37862e  language_data-1.2.0.tar.gz
"
